<?php
/**
 * Created by PhpStorm.
 * Author: WZS
 * User: 17732
 * Date: 2018/9/9
 * Time: 13:36
 */

namespace app\index\validate;


class CommentValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require|isSqlFuck',
        'comment' => 'require|isSqlFuck',
    ];
    //自定义提示信息 必须是message
    protected $message = [
        'name' => '留言失败：系统检测到sql攻击',
        'comment' => '留言失败：系统检测到sql攻击'
    ];

}